﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

namespace BackOffice
{
    public partial class Member_Maintenance : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnCheck_Click(object sender, EventArgs e)
        {
            string name = txtName.Text;
            string email = txtEmail.Text;
            string dateRegister = txtDateRegistered.Text + " 00:00:00.000";
            int role = Convert.ToInt32(ddlRole.SelectedValue);
            int status = Convert.ToInt32(ddlStatus.SelectedValue);

            DataTable dt = new DataTable();

            dt = Maintenance.listMember(name, email, dateRegister, role, status);            

            Member_Maintenance_Grid.DataSource = dt;
            Member_Maintenance_Grid.DataBind();
        }
    }
}